package com.youlu.campus.prop;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "spring.redis.cache")
@Getter
@Setter
public class RedisClusetProperties {
    private int expireSeconds;
    private String clusterNodes;
    private int commandTimeout;
    private Integer maxActive;
    private Integer maxIdle;
    private Long maxWait;
    private Integer minIdle;
    private String password;
    private boolean testOnBorrow;
    private int maxWaitMillis;
    /**
     * 读取数据超时时间
     */
    private int soTimeout=3000;
    /**
     * 重试次数
     */
    private int maxAttempts=5;
}
